SftTree/OCX 7.0

VirtualItem.CellPicture Property

Softel vdm, Inc.

Defines the graphic displayed as the item's cell graphic.

Deprecated - Provided for compatibility with earlier versions only - Use VirtualItem.Item.Cell.Image.Picture instead

Syntax       

Get

VB.NET

refPictureObj = object.CellPicture(ByVal ColIndex As Short)  As stdole.IPictureDispLanguage-specific information

VB

Set refPictureObj = object.CellPicture(ByVal ColIndex As Integer)  As IPictureDisp

C#.NET

stdole.IPictureDispLanguage-specific information refPictureObj = object.get_CellPicture(short ColIndex);

VC++

IPictureDisp* refPictureObj = object->GetCellPicture(short ColIndex);

C

HRESULT object->get_CellPicture(short ColIndex, IPictureDisp** refPictureObj);

Delphi

refPictureObj := object.CellPicture[ColIndex : Smallint]  : IPictureDisp;

Put

VB.NET

object.let_CellPicture(ByVal ColIndex As Short, ByVal refPictureObj As stdole.IPictureDispLanguage-specific information)

VB

object.CellPicture(ByVal ColIndex As Integer) = refPictureObj  As IPictureDisp

C#.NET

void object.let_CellPicture(short ColIndex, stdole.IPictureDispLanguage-specific information refPictureObj);

VC++

void object->PutCellPicture(short ColIndex, IPictureDisp* refPictureObj);

C

HRESULT object->put_CellPicture(short ColIndex, IPictureDisp* refPictureObj);

Delphi

procedure object._Set_CellPicture(ColIndex : Smallint, refPictureObj : IPictureDisp);

PutRef

VB.NET

object.CellPicture(ByVal ColIndex As Short) = refPictureObj  As stdole.IPictureDispLanguage-specific information

VB

Set object.CellPicture(ByVal ColIndex As Integer) = refPictureObj  As IPictureDisp

C#.NET

void object.set_CellPicture(short ColIndex, stdole.IPictureDispLanguage-specific information refPictureObj);

VC++

void object->PutRefCellPicture(short ColIndex, IPictureDisp* refPictureObj);

C

HRESULT object->putref_CellPicture(short ColIndex, IPictureDisp* refPictureObj);

Delphi

object.CellPicture[ColIndex : Smallint] := refPictureObj  : IPictureDisp;

object

A VirtualItem object.

ColIndex

The zero-based column number.  The combination of ColIndex and the VirtualItem event's RowIndex parameter describes an individual cell.

refPictureObj

Defines the graphic displayed as the item's cell graphic.  The refPictureObj object must represent a bitmap, icon or Windows metafile.  If a bitmap is used, the top, left pixel of each graphic must contain the background color.  This color will be replaced by the actual background when the graphic is displayed.  For information about picture properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

Deprecated - Provided for compatibility with earlier versions only - Use VirtualItem.Item.Cell.Image.Picture instead

The CellPicture property defines the graphic displayed as the item's cell graphic.

The VirtualItem.CellPicture property is used while handling a VirtualItem event to define the cell graphic for the cell described by ColIndex and the VirtualItem event's RowIndex parameter.

See Also  VirtualItem Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com